﻿@model iHouse.Model.Data.Book
@{
    ViewBag.Title = Resources.BookUploadImage;
    Layout = "~/Views/Shared/_Root.cshtml";
}
<div class="logon-container">
    <form method="post" action="@Url.Action("UploadImage", new { bookID = Model.ID })"
        enctype="multipart/form-data">
        <p>
            <label>
                @Resources.BookImage</label>
            <input type="file" name="image" style="margin-left:1%" />
        </p>
        <p class="clearfix">
            <input type="submit" value="@Resources.Submit" style="width:150px;" />
        </p>
        @if (!System.String.IsNullOrEmpty(Model.ImagePath))
        {
            @Html.Image(Model.ImagePath, new { @class = "bookimg", @style = "margin-left:1%" });
        }
    </form>
</div>
